<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<ui:include src="include/head.xhtml" />
</h:head>
<h:body>
	<ui:include src="include/header.xhtml" />
	<div class="main">
		<table width="100%">
			<tr>
				<td width="15%" valign="top">
					<ui:include src="include/menu.xhtml" />
				</td>
				<td class="main" valign="top">
					<p>Учебные планы: </p>
					<ui:repeat value="#{plansBean.faculties}" var="f">
						<div style='text-decoration: underline;'>
							#{f.title} (<a href='../addspec/#{f.id}/'>+</a>)
						</div>
						<ui:repeat value="#{f.specialities}" var="s">
							<div style='padding-left: 20px;'>
								<a href='#{s.id}'>
									#{s.code} - #{s.title}
								</a>
							</div> 
						</ui:repeat>
						<hr />
					</ui:repeat>
					<h:messages />
				</td>
			</tr>
		</table>
	</div>
</h:body>
</html>